<template>
  <div class="wrap">
    <div class="load" v-if="loading">
      <img :src="oss" alt="">
    </div>
    <div class="success" v-else>
      <div><img class="img" src="https://weber-imgs.oss-cn-beijing.aliyuncs.com/ty/merchant/market/success.gif" alt=""></div>
      <div>活动发起成功</div>
      <div>一大波司机即将来到，请做好准备迎接吧</div>
      <div>
        <el-button @click="handleGoneDetail">查看活动列表</el-button>
        <el-button type="primary" @click="handleSend">返回能＋小助手</el-button>
      </div>
    </div>
  </div>
</template>
<script>
// import { ossUrl }  from '../../../../utils/config'
export default {
  data() {
    return {
      loading: true,
    }
  },
  computed:{
    oss () {
      return 'https://weber-imgs.oss-cn-beijing.aliyuncs.com/ty/merchant/market/loading.gif'
    }
  },
  methods: {
    handleSend () {
     this.$router.push({ path: '/marketCenter/marketHelper' })
    },
    handleGoneDetail () {
      this.$router.push({ path: '/dataAnalyze/dataAnalyze_index' })
    }
  },
  mounted () {
    setTimeout(() => {
      this.loading = false
    }, 5000)
  }
}
</script>

<style scoped lang="less">
.wrap{
  position: absolute;
  top:10px;
  left:10px;
  bottom: 10px;
  right: 10px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-content: center;
}
.load{
  width: 100%;
  display: flex;
  background: #fff;
  justify-content: center;
  align-items: center;
  >img{
    display: block;
    width: 450px;
    height: 450px;
  }
}
.success{
  width: 100%;
  height: 635px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  div:nth-child(1){
    margin-bottom: 20px;
  }
  div:nth-child(2){
    margin-bottom: 20px;
  }
  div:nth-child(3){
    margin-bottom: 50px;
    font-size: 16px;
    font-family: PingFangSC-Regular, PingFang SC;
    font-weight: 400;
    color: #999999;
  }
  .img{
    display: block;
    width: 240px;
    height: 148px;
  }
}
.el-button{
  width: 180px;
}
</style>